class CollectionListEntity {
	int errno;
	CollectionListData data;
	String errmsg;

	CollectionListEntity({this.errno, this.data, this.errmsg});

	CollectionListEntity.fromJson(Map<String, dynamic> json) {
		errno = json['errno'];
		data = json['data'] != null ? new CollectionListData.fromJson(json['data']) : null;
		errmsg = json['errmsg'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['errno'] = this.errno;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['errmsg'] = this.errmsg;
		return data;
	}
}

class CollectionListData {
	int total;
	int pages;
	int limit;
	int page;
	List<CollectionListDataList> xList;

	CollectionListData({this.total, this.pages, this.limit, this.page, this.xList});

	CollectionListData.fromJson(Map<String, dynamic> json) {
		total = json['total'];
		pages = json['pages'];
		limit = json['limit'];
		page = json['page'];
		if (json['list'] != null) {
			xList = new List<CollectionListDataList>();(json['list'] as List).forEach((v) { xList.add(new CollectionListDataList.fromJson(v)); });
		}
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['total'] = this.total;
		data['pages'] = this.pages;
		data['limit'] = this.limit;
		data['page'] = this.page;
		if (this.xList != null) {
      data['list'] =  this.xList.map((v) => v.toJson()).toList();
    }
		return data;
	}
}

class CollectionListDataList {
	int productId;
	String productUrl;
	int collectionId;
	String productName;

	CollectionListDataList({this.productId, this.productUrl, this.collectionId, this.productName});

	CollectionListDataList.fromJson(Map<String, dynamic> json) {
		productId = json['productId'];
		productUrl = json['productUrl'];
		collectionId = json['collectionId'];
		productName = json['productName'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['productId'] = this.productId;
		data['productUrl'] = this.productUrl;
		data['collectionId'] = this.collectionId;
		data['productName'] = this.productName;
		return data;
	}
}
